check two list python not match

33

l1 = [10, 20, 30, 40, 50] 
l3 = [50, 10, 30, 20, 40] 
 
a = set(l1)
b = set(l3)
 
if a == b:
    print("Lists l1 and l3 are equal")
else:
    print("Lists l1 and l3 are not equal")

Comments

Submit
0 Comments